package com.dgut.coal.service.impl;

import com.dgut.coal.dao.InfoDao;
import com.dgut.coal.entity.Info;
import com.dgut.coal.service.InfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @Author: Yang
 * @Description:
 * @Date: Created in 14:56 2019/9/29
 * @Modifued BY:
 */

@Service
public class InfoServiceImpl implements InfoService {


    @Autowired
    InfoDao infoDao;

    @Override
    public List<Info> infolist(Integer notify_id,String title, Integer state) {
        return infoDao.infolist(notify_id,title,state);
    }

    @Override
    public int deleteInfo(Integer id) {
        return infoDao.deleteInfo(id);
    }

    @Override
    public int deleteMany(int[] ints) {
        return infoDao.deleteMany(ints);
    }

    @Override
    public int temp(String create_user, String create_date, String title, String content, int state) {
        return infoDao.temp(create_user,create_date,title,content,state);
    }

    @Override
    public Info ainfo(Integer notify_id) {
        return infoDao.ainfo(notify_id);
    }

    @Override
    public int edit(String title, String content,String format,Integer notify_id) {
        return infoDao.edit(title, content, format, notify_id);
    }

    @Override
    public int save(String create_user, String create_date, String title, String content, int state) {
        return infoDao.save(create_user,create_date,title,content,state);
    }

    @Override
    public int release(Integer notify_id) {
        return infoDao.release(notify_id);
    }

    @Override
    public int updatesave(String title, String content, String format, Integer state, Integer notify_id) {
        return infoDao.updatesave(title,content,format,state,notify_id);
    }

    @Override
    public List<Info> auditInfo(Integer notify_id, String title) {
        return infoDao.auditInfo(notify_id, title);
    }

    @Override
    public int pass(Integer notify_id,String audit_user,String audit_date) {
        return infoDao.pass(notify_id,audit_user,audit_date);
    }

    @Override
    public int reject(Integer notify_id,String audit_user,String audit_date) {
        return infoDao.reject(notify_id,audit_user,audit_date);
    }


    @Override
    public int count() {
        return infoDao.count();
    }

    @Override
    public int auditCount() {
        return infoDao.auditCount();
    }

    @Override
    public List<Info> lastest() {
        return infoDao.lastest();
    }

}
